﻿/*
  鲁塔比斯 封印箱兑换
*/
var status = -1;

function action(mode, type, selection) {
    if (mode == 1) {
        status++;
    } else {
        if (status == 0) {
			cm.sendOkN("那请继续加油");
            cm.dispose();
        }
        status--;
    }
    if (status == 0) {
    	cm.sendYesNoN("你是否要退出比赛回到自由市场？");
    }
	else if(status == 1){
		cm.warp(910000000,0);
		cm.dispose();
	}
}